using System;
using System.Collections.Generic;
using System.Text;
using Attach.Internal;

namespace Attach
{
    public class ReturnMultipleValues : Return
    {
        private int _returnCount = 0;
        private object[] _values;

        public ReturnMultipleValues(object[] values)
        {
            _values = values;
        }

        public override object GetReturnValue(object[] parameters)
        {
            return _values[_returnCount++];
        }
    }
}
